import { Login, Home, NotFound, Content, Modules } from '../components/';

module.exports = [{
        path: '/',
        redirect: to => {
            return 'login';
        },
        hidden: true
    },
    {
        path: '/login',
        component: Login,
        hidden: true
    },
    {
        path: '/404',
        component: Home,
        hidden: true,
        children: [{
            path: '',
            component: NotFound
        }]
    },
    {
        path: '/business',
        name: '真实的世界研究管理',
        icon: 'inbox',
        component: Home,
        children: [{
                hidden: true,
                path: '',
                redirect: to => { return 'users' }
            },
            {
                path: 'users',
                name: '用户管理',
                icon: 'inbox',
                component: Content,
                children: [{
                        hidden: true,
                        path: '',
                        redirect: to => { return 'list' }
                    },
                    {
                        path: 'list',
                        name: '用户列表',
                        icon: 'reorder',
                        component: Modules.Business.Users.List.List
                    },
                    {
                        path: 'list/details',
                        name: '用户详细信息',
                        hidden: true,
                        icon: 'edit',
                        component: Modules.Business.Users.List.UserDetails
                    }
                ]
            },
             {
                path: 'work',
                name: '作品信息',
                icon: 'inbox',
                component: Content,
                children: [{
                        hidden: true,
                        path: '',
                        redirect: to => { return 'normal' }
                    },
                    {
                        path: 'normal',
                        name: '正常作品',
                        icon: 'reorder',
                        component: Modules.Business.Integral.Strategy
                    }, {
                        path: 'chain',
                        name: '区块链作品',
                        icon: 'reorder',
                        component: Modules.Business.Integral.Shop
                    }
                ]
            },
            {
                path: 'anthor',
                name: '作者信息',
                icon: 'inbox',
                component: Content,
                children: [{
                        hidden: true,
                        path: '',
                        redirect: to => { return 'list' }
                    },
                    {
                        path: 'list',
                        name: '作者列表',
                        icon: 'reorder',
                        component: Modules.Business.Bbs.Bbs
                    }
                ]
            }

        ]
    }
];